// 文件路径: src/main/java/com/macro/mall/tiny/modules/oms/dto/CartParam.java
package com.macro.mall.tiny.modules.oms.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
@Schema(description = "购物车添加参数")
public class CartParam {

    @Schema(description = "用户端标识")
    private String token;

    @Schema(description = "顾客id")
    private Integer userId;

    @NotNull(message = "产品ID不能为空")
    @Schema(description = "产品id")
    private Integer skuId;

    @NotNull(message = "商品数量不能为空")
    @Schema(description = "个数")
    private Integer qty;

    @Schema(description = "商品备注")
    private String remark;
}
